﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SelectedImage : MonoBehaviour
{
    private Image image;
    public Sprite selectdSprite;
    Sprite defaultSprite;
    void Start()
    {
        image = this.GetComponent<Image>();
        defaultSprite = image.sprite;
    }

    public void SetImgSelect()
    {
        image.sprite = selectdSprite;
    }

    public void ResetImg()
    {
        image.sprite = defaultSprite;
    }

   
}
